# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpthread-stubs
pkgver=0.4
pkgrel=0
pkgdesc="Pthread functions stubs for platforms missing them"
url="https://cgit.freedesktop.org/xcb/pthread-stubs"
arch="all"
license="X11"
options="!check !dbg" # no tests
source="https://xcb.freedesktop.org/dist/libpthread-stubs-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

#prepare() {
#	default_prepare
#
#	cd "$builddir"
#	update_config_sub
#}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0fec563f3833b84311b32cb13a4fd9832aeb0204c65b1541bf453d5d35693b2267c3cee656e00a4b8533b07a8f6320ca5c3672dcf8ab047cdac8628154c08954  libpthread-stubs-0.4.tar.bz2
"
